﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkFlowAccredStatistics.aspx.cs"
    Inherits="ZX.WebApp.WorkFlow.WorkFlowAccredStatistics" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Crm/Css/default.css" rel="stylesheet" type="text/css" />
   
</head>
<body>
    <form id="form1" runat="server">
    <table width="80%" border="0" cellpadding="0" cellspacing="0" class="bg_dowm" align="center">
        <tr>
            <td height="15" valign="bottom" class="title_1" align="right">
                <asp:Button runat="server" ID="btnOK" Text="新增流程代理" OnClick="btnOK_Click"></asp:Button>
            </td>
        </tr>
        <tr>
            <td height="15" valign="bottom" align="left" class="title_1">
                当前操作人代理状况
            </td>
        </tr>
        <tr>
            <td>
                <!--查询结果-->
                      <div id="Div1" runat="server" style="width:100%; overflow: auto;
                                    border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid; border-left: #bdcaea 1px solid;
                                    border-top: #bdcaea 1px solid;">
                <asp:GridView ID="gvAccredPersonal" runat="server" BackColor="White" GridLines="None"
                    AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" CellPadding="0"
                    Font-Size="10pt" CellSpacing="2" PageSize="1000" Height="100%">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <RowStyle HorizontalAlign="Center" CssClass="table_content" />
                    <SelectedRowStyle HorizontalAlign="Center" />
                    <HeaderStyle Font-Bold="False" Height="25px" CssClass="fixedheader" HorizontalAlign="Center"
                        Font-Size="14px" ForeColor="White" />
                    <EditRowStyle HorizontalAlign="Center" />
                    <AlternatingRowStyle HorizontalAlign="Center" />
                    <PagerSettings Visible="False" />
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate>
                                <asp:Label ID="lblNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Number") %>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="170px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="被代理人">
                            <ItemTemplate>
                                <asp:Label ID="txtAccreditFromName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditFromName")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="被代理人ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="txtAccreditFromUserId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditFromUserId")%>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="数量">
                            <ItemTemplate>
                                <asp:Label ID="txtCount" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Count")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="代理人">
                            <ItemTemplate>
                                <asp:Label ID="lblAccreditToName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditToName")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="代理人ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblAccreditToUserId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditToUserId")%>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="列表">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlk" runat="server" Text="列表" NavigateUrl='<%#"~/WorkFlow/AccreditWorkflowList.aspx?Status=1&accreditToUserId="+DataBinder.Eval(Container.DataItem,"AccreditToUserId")+"&accreditFromUserId="+DataBinder.Eval(Container.DataItem,"AccreditFromUserId")%>'
                                    Target="_self"></asp:HyperLink>
                            </ItemTemplate>
                            <ItemStyle Width="210px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收回代理">
                            <ItemTemplate>
                                <asp:LinkButton ID="hlkTakeback" runat="server" Text="立即收回" OnClick="hlkTakeback_Click" OnClientClick="javascript:return confirm('确认收回代理！');"
                                    Target="_self"></asp:LinkButton>
                                <asp:CheckBox ID="ckAccredit" runat="server" Text="收回流转中的流程代理 " Checked="false" />
                            </ItemTemplate>
                            <ItemStyle Width="300px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                </div>
                <!--查询结果-->
            </td>
        </tr>
        <tr>
            <td height="15" valign="bottom" class="title_1">
              
            </td>
        </tr>
        <tr>
            <td style="height: 10px; width: 100%">
                <hr />
            </td>
        </tr>
        <tr>
            <td height="15" valign="bottom" class="title_1">
                其它操作人代理状况
            </td>
        </tr>
        <tr>
            <td height="100%">
                <!--查询结果-->
                 <div id="Div2" runat="server" style="width: 100%; overflow: auto;
                                    border-right: #bdcaea 1px solid; border-bottom: #bdcaea 1px solid; border-left: #bdcaea 1px solid;
                                    border-top: #bdcaea 1px solid;">
                <asp:GridView ID="gvAccredOther" runat="server" BackColor="White" GridLines="None" 
                    AutoGenerateColumns="False" BorderStyle="None" BorderWidth="0px" CellPadding="0"
                    Font-Size="10pt" CellSpacing="2" PageSize="1000" Height="100%">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <RowStyle HorizontalAlign="Center" CssClass="table_content" />
                    <SelectedRowStyle HorizontalAlign="Center" />
                    <HeaderStyle Font-Bold="False" Height="25px" CssClass="fixedheader" HorizontalAlign="Center"
                        Font-Size="14px" ForeColor="White" />
                    <EditRowStyle HorizontalAlign="Center" />
                    <AlternatingRowStyle HorizontalAlign="Center" />
                    <PagerSettings Visible="False" />
                    <Columns>
                        <asp:TemplateField HeaderText="序号">
                            <ItemTemplate>
                                <asp:Label ID="lblNumber" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "number") %>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="170px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="被代理人">
                            <ItemTemplate>
                                <asp:Label ID="txtAccreditFromName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditFromName")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="被代理人ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="txtAccreditFromUserId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditFromUserId")%>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="代理人">
                            <ItemTemplate>
                                <asp:Label ID="lblAccreditToName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditToName")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="代理人ID" Visible="false">
                            <ItemTemplate>
                                <asp:Label ID="lblAccreditToUserId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AccreditToUserId")%>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="数量">
                            <ItemTemplate>
                                <asp:Label ID="txtCount" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Count")%>'
                                    Width="100%"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle Width="200px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="列表">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlk" runat="server" Text="列表" NavigateUrl='<%#"~/WorkFlow/AccreditWorkflowList.aspx?Status=0&accreditToUserId="+DataBinder.Eval(Container.DataItem,"AccreditToUserId")+"&accreditFromUserId="+DataBinder.Eval(Container.DataItem,"AccreditFromUserId")%>'
                                    Target="_self"></asp:HyperLink>
                            </ItemTemplate>
                            <ItemStyle Width="210px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                </div>
                <!--查询结果-->
            </td>
        </tr>
        <tr>
            <td height="15" valign="bottom" class="title_1">
               
            </td>
        </tr>
        <tr>
            <td height="20" style="width: 100%">
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
